﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace WPF_Databases.Commands
{
    public class RelayCommands:ICommand
    {
        public RelayCommands(Action<object> a)
        {
            execute = a;
        }

        private Action<object> execute;

        public bool CanExecute(object parameter)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;

        public void Execute(object parameter)
        {
            execute(parameter);
        }
    }
}
